package com.ktjiaoyu.crm.controller;

import com.ktjiaoyu.crm.service.RightService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("/right")
public class RightController {
    @Resource
    RightService rightService;

    @RequestMapping("/reload")
    public String reload(){
        rightService.reloadFilterChainDefinitions();

        return "redirect:/main";
    }
}
